import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'
import { CommonServiceModule } from '../../common/common.service.module';
import { WorkFlowComponent } from './workflow.component';
import { OrderModule } from './order/order.module';
import { ApprovalModule } from './approval/approval.module';
import { ProcedureModule } from './procedure/procedure.module';

@NgModule({
    imports: [
        CommonServiceModule,
        RouterModule.forChild([
            {
                path: '',
                component: WorkFlowComponent,
                children: [
                    {
                        path: 'order',
                        loadChildren: './order/order.module#OrderModule',
                    },
                    {
                        path: 'approval',
                        loadChildren: './approval/approval.module#ApprovalModule',
                    },
                    {
                        path: 'procedure',
                        loadChildren: './procedure/procedure.module#ProcedureModule',
                    },
                    {
                        path: 'procedureAssign',
                        loadChildren: './procedureAssign/procedureAssign.module#ProcedureAssignModule',
                    }
                ]
            },
        ])
    ],
    providers: [

    ],
    declarations: [
        WorkFlowComponent
    ],
    exports: [
        WorkFlowComponent
    ],
})
export class WorkFlowModule { }